package org.example.ctsbocc.service.impl;

import jakarta.annotation.Resource;
import org.example.ctsbocc.entity.Project;
import org.example.ctsbocc.mapper.ProjectMapper;
import org.example.ctsbocc.service.ProjectService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("projectService")
public class ProjectServiceImpl implements ProjectService {

    @Resource(name = "projectMapper")
    private ProjectMapper projectMapper;

    @Override
    public List<Project> findByOwner(String gitRepoOwner) {
        return projectMapper.findByOwner(gitRepoOwner);
    }
}
